<div id="slider-wrapper">
    <div id="slider" class="nivoSlider">
        <?php foreach ($arySlider as $key => $value) {?>
        <a href="<?php echo $value['slider_link'];?>" target="_blank"><img src="<?php echo $value['slider_image'];?>"></a>
        <?php } ?>
    </div>
    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider();
        });
    </script>

</div>